#include "../func.h"

int main()
{
    FILE* fp;
    fp = popen("ls", "r");
    if (NULL == fp)
    {
        perror("popen");
        return -1;
    }
    char buf[512] = {0};
    fread(buf, sizeof(char), 512, fp);
    printf("I am popen\n");
    printf("%s", buf);
    pclose(fp);
    return 0;
}
